package StackDemo;

import java.lang.reflect.Array;
import java.util.Arrays;

public class Text {
    public static void main(String[] args) {
        MyStackUseQueue stack = new MyStackUseQueue();
        stack.push(1);
        stack.push(2);
        stack.top();
    }

    public static void main1(String[] args) {
        MyStack stack = new MyStack();
        stack.push(1);
        stack.push(2);
        stack.push(3);
        stack.push(4);
        stack.push(5);
        System.out.println(Arrays.toString(stack.elem));


        System.out.println(stack.peek());
    }
}
